package com.zhang.gulimall.order.feign;

import com.zhang.gulimall.common.utils.R;
import com.zhang.gulimall.order.entity.OrderItemEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeign {

    @RequestMapping("/ware/waresku/lock/order")
    R lockOrder(@RequestBody List<OrderItemEntity> orderItem);
}
